package com.gugee.tiktok.data.consumer.challenge.config;

import com.alibaba.nacos.api.config.annotation.NacosValue;
import lombok.Getter;
import org.springframework.context.annotation.Configuration;

@Configuration
@Getter
public class ChallengeAppConfig {

    @NacosValue(value="${tiktok.data.challenge.logTime.updateChallenge.limit}", autoRefreshed = true)
    int timeLimit;

    @NacosValue(value="${tiktok.data.threadpools.challenge.corePollSize}", autoRefreshed = true)
    int corePollSize;

    @NacosValue(value="${tiktok.data.challenge.avg.day}", autoRefreshed = true)
    int avgDay;

    @NacosValue(value = "${tiktok.data.query.latestDays:30}", autoRefreshed = true)
    int latestDays;
}
